﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Login_Login : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
    {
        if (Cadastro.usuario.email.Equals(Login1.UserName) && Cadastro.usuario.senha.Equals(Login1.Password))
        {
            Response.Redirect("../Default.aspx");
        }
        else Response.Redirect("Log_Erro.aspx");
    }
}